package net.borlis.server.properties;

import org.apache.commons.configuration.ConfigurationException;
import org.apache.commons.configuration.PropertiesConfiguration;

/**
 * Created by borlis on 26.12.2014.
 */
public class ServerProperties {

    private String port;

    public ServerProperties() {
        try {
            PropertiesConfiguration propertiesConfiguration = new PropertiesConfiguration("props/server.properties");
            this.port = propertiesConfiguration.getString("server.port");
        } catch (ConfigurationException e) {
            e.printStackTrace();
        }
    }

    public String getPort() {
        return port;
    }
}
